const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const message = new Schema({
    name:{
        type:String,
        required:true
    },
    content:{
        type:String,
        require:true,
        maxlength:200
    },
    thumb:{
        type:String
    },
    isShow:{
        type : Boolean,
        default : false
    }
},{
    timestamps:{
       
    }
})

module.exports= mongoose.model("message",message);